import React, { Component } from 'react';
import LoaderHelper from './loaderHelper';

class LookersLoader extends Component {
    componentDidMount() {
        const { widget } = this.props;
        // 默认加载围观组件默认图片
        let url = widget.stereoUrl;
        LoaderHelper.imageGeometryLoader(url, widget);
    }

    componentWillReceiveProps(nextProps) {
    	if (nextProps.widget !== this.props.widget) {
    		LoaderHelper.resetMeshItem(nextProps.widget)
    	}
    }

    render() {
        return (<div />)
    }
}

export default LookersLoader;
